package com.yt.common.constant;

import java.util.ArrayList;
import java.util.List;

public class ExcludeApisConstant {

    private ExcludeApisConstant(){

        excludeApis.add("/shopping-client/api/server/get");
        excludeApis.add("/commodity-client/api/server/get");
        excludeApis.add("/file-client/api/server/get");
        excludeApis.add("/order-client/api/server/get");
        excludeApis.add("/pay-client/api/server/get");
        excludeApis.add("/search-client/api/server/get");
        excludeApis.add("/sms-client/api/server/get");
        excludeApis.add("/sys-client/api/server/get");
        excludeApis.add("/user-client/api/server/get");

        //首页
        excludeApis.add("/shopping-client/api/templetInfo/getListPlatformTemplateModule");
        excludeApis.add("/shopping-client/api/epgBanner/getListByModuleId");
        excludeApis.add("/shopping-client/api/epgCqInfo/getListByModuleId");
        excludeApis.add("/shopping-client/api/epgTopic/querySelectList");
        excludeApis.add("/shopping-client/api/epgTopic/getListByModuleId");
        excludeApis.add("/shopping-client/api/epgShowWindow/querySelectList");
        excludeApis.add("/shopping-client/api/epgSection/getListByModuleId");
        excludeApis.add("/shopping-client/api/epgSectionCommodityRelation/getListBySectionId");
        excludeApis.add("/shopping-client/api/templetInfo/getHighShop");
        excludeApis.add("/shopping-client/api/templetInfo/getPlatformTemplateInfo");

        excludeApis.add("/order-client/api/purchaseInfo/queryHomePageList");
        excludeApis.add("/pay-client/api/payUser/queryPageZjHistoryBalanceRu");

        //分类
        excludeApis.add("/commodity-client/api/commodityCategory/queryCategoryTree");
        //公告
        excludeApis.add("/message-client/api/messageNotice/queryPageList");
        //热词
        excludeApis.add("/shopping-client/api/epgHotWord/querySelectPageList");
        //品牌
        excludeApis.add("/commodity-client/api/brandInfo/queryList");
        //品牌下的店铺
        excludeApis.add("/shopping-client/api/shopBrandRelation/queryFranchiseShopPageList");
        //其他好店
        excludeApis.add("/shopping-client/api/shopBrandRelation/querySpecialtyShopPageList");
        //活动页模板
        excludeApis.add("/shopping-client/api/templetInfo/getListPlatformActiveTemplateModule");
        excludeApis.add("/shopping-client/api/templetInfo/queryHomeTempletModuleList");
        excludeApis.add("/shopping-client/api/templetInfo/queryFinancialTempletModuleList");
        excludeApis.add("/shopping-client/api/epgAggregationCategory/getListByModuleId");
        excludeApis.add("/shopping-client/api/epgAggregationBanner/getListByModuleId");
        excludeApis.add("/shopping-client/api/epgAggregationCategoryCommodityRelation/getListByCategoryId");

        //搜索
        excludeApis.add("/es-client/api/esCommoditySearch/queryGoodsSearch");
        excludeApis.add("/search-client/api/goodsSearch/queryGoodsSearch");
        excludeApis.add("/search-client/api/goodsSearch/queryShopSearch");
        excludeApis.add("/search-client/api/goodsSearch/addMappingAndAddDate");

        excludeApis.add("/file-client/api/fileInfo/queryListByUrl");

        //筛选属性
        excludeApis.add("/commodity-client/api/commodityCategory/getFilterAttributes");

        //店铺首页
        excludeApis.add("/shopping-client/api/templetInfo/getListDefaultShopTemplateModuleByShopId");
        excludeApis.add("shopping-client/api/templetInfo/getListTemplateModuleByTemplateId");
        excludeApis.add("/shopping-client/api/epgShopSection/getListByModuleId");
        excludeApis.add("/shopping-client//get");
        excludeApis.add("/shopping-client/api/epgShopSectionCommodityRelation/getListBySectionId");
        excludeApis.add("/shopping-client/api/epgShopBanner/getListByModuleId");
        excludeApis.add("/shopping-client/api/shopInfo/queryApiPageList");
        //所有产品
        excludeApis.add("/shopping-client/api/shopBrandRelation/queryVOList");

        //店铺信息
        excludeApis.add("/shopping-client/api/shopCategoryRelation/getCategoryByShopId");
        excludeApis.add("/commodity-client/api/commodityEvaluation/queryShopPageEvaluation");
        excludeApis.add("/shopping-client/api/shopInfo/getScore");

        //店铺活动
        excludeApis.add("/shopping-client/api/templetInfo/getListDefaultShopActiveTemplateModuleByShopId");
        //商品详情页
        excludeApis.add("/commodity-client/api/commodityInfo/queryCommodityDetailsPageData");
        excludeApis.add("/commodity-client/api/commodityInfo/getGoodsAllAttrs");
        excludeApis.add("/commodity-client/api/commodityInfo/getShopHotSell");
        excludeApis.add("/commodity-client/api/commodityEvaluation/getCommentsNumber");
        excludeApis.add("/commodity-client/api/commodityInfo/getCountSales");
        excludeApis.add("/shopping-client/api/shopCollect/getBeCollectCommodityCount");
        excludeApis.add("/shopping-client/api/shopCollect/getCollect");
        excludeApis.add("/sys-client/api/sysArea/getAllProvince");
        excludeApis.add("/commodity-client/api/commodityInfo/queryGoodsParamDetails");

        excludeApis.add("/user-client/api/userLogin/login");
        excludeApis.add("/user-client/api/userLogin/loginWX");
        excludeApis.add("/user-client/api/userLogin/registered");
        excludeApis.add("/sms-client/api/sms/saveCaptcha");
        excludeApis.add("/user-client/api/userLogin/loginMobile");
        excludeApis.add("/user-client/api/userInfo/getVoByName");
        excludeApis.add("/user-client/api/userInfo/getVoByCompanyName");
        excludeApis.add("/sms-client/api/sms/getCaptcha");
        excludeApis.add("/sms-client/api/sms/send");
        excludeApis.add("/sms-client/api/sms/sendByPass");
        excludeApis.add("/sms-client/api/email/getCaptcha");
        excludeApis.add("/sms-client/api/email/saveCaptcha");
        excludeApis.add("/sms-client/cms/login/in");
        excludeApis.add("/user-client/api/userInfo/getVoByName");
        excludeApis.add("/user-client/api/userLogin/updatePassWord");
        excludeApis.add("/user-client/api/userLogin/getVerify");
        excludeApis.add("/user-client/api/userLogin/insert");
        excludeApis.add("/sys-client/cms/sysLogin/login");
        excludeApis.add("/sys-client/cms/sysLogin/loginMobile");

        //其他
        excludeApis.add("/sys-client/api/sysDict/getByName");
        excludeApis.add("/sys-client/api/sysArea/queryAreaTreeList");
        excludeApis.add("/sys-client/cms/sysComplaints/batchExportComplaintList");
        excludeApis.add("/commodity-client/api/commodityAdvisoryPriceFileApiController");
        excludeApis.add("/commodity-client/api/commodityAdvisoryPriceFileApiController/selectFile");
        excludeApis.add("/commodity-client/api/commodityInfo/batchExportGoodsList");
        excludeApis.add("/shopping-client/api/shopContractSettleIn/getCallBackContactInfo");
        excludeApis.add("/shopping-client/api/shopQiyuesuoInfo/getCallBackContactInfo");
        excludeApis.add("/shopping-client/api/shopQiyuesuoInfo/getCallBackAuthInfo");
        excludeApis.add("/shopping-client/api/shopQiyuesuoInfo/orderContractDownload");
        excludeApis.add("/shopping-client/cms/shopQiyuesuoInfo/orderContractDownload");
        excludeApis.add("/user-client/api/userInfo/activeEmail");
        excludeApis.add("/user-client/api/userLogin/getActiveByEmail");
        excludeApis.add("/user-client/api/userLogin/getByMobile");
        excludeApis.add("/file-client/cms/fileInfo/queryChildUserList");
        excludeApis.add("/sms-client/api/email/sendActiveEail");
        excludeApis.add("/sms-client/api/sms/im");
        excludeApis.add("/sms-client/api/sms/getAisleInfo");
        excludeApis.add("/order-client/api/orderInfo/batchExportOrderList");
        excludeApis.add("/order-client/cms/orderInfo/batchExportOrderList");
        excludeApis.add("/logistics-client/api/logisticsOrder/batchExportOrderList");
        excludeApis.add("/logistics-client/api/logisticsOrder/batchAdminExportOrderList");
        excludeApis.add("/pay-client/api/payNotify/zj");

        //统计
        excludeApis.add("/order-client/cms/orderCommodityStatisticsController/exportCategoryGoods");//产品统计各类目整体商品统计导出
        excludeApis.add("/order-client/cms/orderCommodityStatisticsController/exportShopCategoryGoodsNum");//产品统计店铺类目商品数量导出
        excludeApis.add("/order-client/cms/orderGMVStatisticsController/exportOrderSalesCategoryGmv");//各类目整体GMV统计导出
        excludeApis.add("/order-client/cms/orderGMVStatisticsController/exportOrderSalesVariousShopItemsGmv");//各类目店铺GMV统计导出
        excludeApis.add("/order-client/cms/orderSalesStatisticsController/exportOrderSalesCategory");//各类目整体销售额统计导出
        excludeApis.add("/order-client/cms/orderSalesStatisticsController/exportOrderSalesVariousShopItems");//各类目店铺销售额统计导出
        excludeApis.add("/order-client/cms/orderStatisticsController/exportOrderVariousItems");
        excludeApis.add("/order-client/cms/orderInfo/getOrderCategory");
        excludeApis.add("/order-client/cms/orderStatisticsController/exportOrderVariousShopItems");
        excludeApis.add("/shopping-client/api/shopContractSettleIn/settleContractDownload");
        excludeApis.add("/shopping-client/cms/shopContractSettleIn/settleContractDownload");
        excludeApis.add("/order-client/cms/orderCommissionStatisticsController/exportShopCommission");
        excludeApis.add("/order-client/cms/orderCommissionStatisticsController/exportCategoryMoney");

        excludeApis.add("/shopping-client/api/shopContractSettleIn/settleContractDBDownload");

        excludeApis.add("/commodity-client/cms/commodityInfo/batchExportAdminGoodsList");
        excludeApis.add("/message-client/api/messageNotice/get");//公告详情
        excludeApis.add("/sys-client/api/sysWebsiteSeo/get");//网站seo

        excludeApis.add("/pay-client/api/payUser/add");//开户
        excludeApis.add("/commodity-client/api/commodityCategory/queryBrandByCategoryId");//开户
        // 属性导入
        excludeApis.add("/commodity-client/cms/commodityCategory/importAttributes");
        // 类目导入
        excludeApis.add("/commodity-client/cms/categoryMaintainCms/importCategoryAttributes");
        // 类目错误数据导出
        excludeApis.add("/commodity-client/cms/categoryMaintainCms/exportImportErrorDate");
        // 商品详情页广告图接口过滤
        excludeApis.add("/shopping-client/api/epgShopBanner/getShopAdvertisementBanner");
        //对接sso
        excludeApis.add("/sys-client/cms/sysLogin/loginSSO");
        excludeApis.add("/sys-client/cms/sysLogin/sendSms");
        excludeApis.add("/sys-client/cms/sysLogin/validateToken");
        // 合同文档上传
        excludeApis.add("/shopping-client/api/shopQiyuesuoInfo/addContractDocument");

        excludeApis.add("/commodity-client/cms/commodityInfo/doImageUrlWM");
        excludeApis.add("/commodity-client/cms/commodityInfo/doImageWM");
        excludeApis.add("/shopping-client/cms/shopAddress/doImageUrlWM");
        excludeApis.add("/shopping-client/cms/shopAddress/doImageWM");
        // 全部类目属性导出
        excludeApis.add("/commodity-client/cms/commodityCategory/exportAllCategoryList");
        // 处理商品图片，后续删除
        excludeApis.add("/commodity-client/api/commodityInfo/updateLogImg");
        // 首页咨询
        excludeApis.add("/shopping-client/api/epgConsultingServiceApi/queryPageList");
        excludeApis.add("/shopping-client/api/epgConsultingServiceApi/getById");

        excludeApis.add("/shopping-client/api/shopOnlineApi/getShopImState");
        excludeApis.add("/logistics-client/api/logisticsUser/getCallBackDeBangContactInfo");

        excludeApis.add("/cms/admin/getUserBalance");
        excludeApis.add("/cms/admin/queryPageZjBalanceLog");
        excludeApis.add("/cms/admin/queryPageZjHistoryBalanceLog");
        excludeApis.add("/cms/admin/saveBalancePay");
        excludeApis.add("/cms/admin/saveFreezeMoney");
        excludeApis.add("/cms/admin/saveFreezeMoney");
        excludeApis.add("/cms/admin/saveUnfreezeMoney");
        excludeApis.add("/cms/admin/queryUserPageList");
        excludeApis.add("/cms/admin/getOnlineBankPayLog");
        excludeApis.add("/cms/admin/saveOnlineBankPayLog");
        excludeApis.add("/cms/admin/getBalancePayLog");
        excludeApis.add("/cms/admin/saveBalancePayLog");
        // 记录商品提交数据
        excludeApis.add("/commodity-client/api/commodityCommitMsgApi/insert");

        excludeApis.add("/logistics-client/api/logisticsNotify/deppon");

        excludeApis.add("/sys-client/cms/sysLogin/validateCode");

        //签名排除
        excludeSignApis.add("/logistics-client/api/logisticsNotify/deppon");
        excludeSignApis.add("/cms/admin/getUserBalance");
        excludeSignApis.add("/order-client/cms/orderInfo/getOrderCategory");

        excludeSignApis.add("/cms/admin/queryPageZjBalanceLog");
        excludeSignApis.add("/cms/admin/queryPageZjHistoryBalanceLog");
        excludeSignApis.add("/cms/admin/saveBalancePay");
        excludeSignApis.add("/cms/admin/saveFreezeMoney");
        excludeSignApis.add("/cms/admin/saveFreezeMoney");
        excludeSignApis.add("/cms/admin/saveUnfreezeMoney");
        excludeSignApis.add("/cms/admin/queryUserPageList");

        excludeSignApis.add("/cms/admin/getOnlineBankPayLog");
        excludeSignApis.add("/cms/admin/saveOnlineBankPayLog");
        excludeSignApis.add("/cms/admin/getBalancePayLog");
        excludeSignApis.add("/cms/admin/saveBalancePayLog");

        excludeSignApis.add("/shopping-client/api/shopContractSettleIn/settleContractDBDownload");
        excludeSignApis.add("/logistics-client/api/logisticsUser/getCallBackDeBangContactInfo");
        excludeSignApis.add("/commodity-client/cms/commodityInfo/doImageUrlWM");
        excludeSignApis.add("/commodity-client/cms/commodityInfo/doImageWM");
        excludeSignApis.add("/shopping-client/cms/shopAddress/doImageUrlWM");
        excludeSignApis.add("/shopping-client/cms/shopAddress/doImageWM");
        excludeSignApis.add("/pay-client/api/payUser/queryPageZjHistoryBalanceRu");
        excludeSignApis.add("/sys-client/cms/sysLogin/loginSSO");
        excludeSignApis.add("/sys-client/cms/sysLogin/sendSms");
        excludeSignApis.add("/sys-client/cms/sysLogin/validateToken");
        excludeSignApis.add("/file-client/api/fileInfo/downloadFile");
        excludeSignApis.add("/commodity-client/api/commodityInfo/batchExportGoodsList");
        excludeSignApis.add("/user-client/api/userInfo/activeEmail");
        excludeSignApis.add("/shopping-client/api/shopQiyuesuoInfo/getCallBackAuthInfo");
        excludeSignApis.add("/shopping-client/api/shopQiyuesuoInfo/getCallBackContactInfo");
        excludeSignApis.add("/pay-client/api/payNotify/zj");
        excludeSignApis.add("/shopping-client/api/shopContractSettleIn/getCallBackContactInfo");
        excludeSignApis.add("/shopping-client/cms/shopContractSettleIn/settleContractDownload");
        excludeSignApis.add("/shopping-client/cms/shopQiyuesuoInfo/orderContractDownload");
        excludeSignApis.add("/sms-client/api/sms/im");
        excludeSignApis.add("/sms-client/api/sms/send");
        excludeSignApis.add("/sms-client/api/sms/sendByPass");
        excludeSignApis.add("/sms-client/api/sms/getAisleInfo");
        excludeSignApis.add("/shopping-client/api/shopQiyuesuoInfo/orderContractDownload");
        excludeSignApis.add("/sys-client/cms/sysComplaints/batchExportComplaintList");
        //统计签名排除
        excludeSignApis.add("/order-client/cms/orderCommodityStatisticsController/exportCategoryGoods");//产品统计各类目整体商品统计导出
        excludeSignApis.add("/order-client/cms/orderCommodityStatisticsController/exportShopCategoryGoodsNum");//产品统计店铺类目商品数量导出
        excludeSignApis.add("/order-client/cms/orderGMVStatisticsController/exportOrderSalesCategoryGmv");//各类目整体GMV统计导出
        excludeSignApis.add("/order-client/cms/orderGMVStatisticsController/exportOrderSalesVariousShopItemsGmv");//各类目店铺GMV统计导出
        excludeSignApis.add("/order-client/cms/orderSalesStatisticsController/exportOrderSalesCategory");//各类目整体销售额统计导出
        excludeSignApis.add("/order-client/cms/orderSalesStatisticsController/exportOrderSalesVariousShopItems");//各类目店铺销售额统计导出
        excludeSignApis.add("/order-client/cms/orderStatisticsController/exportOrderVariousItems");
        excludeSignApis.add("/order-client/cms/orderStatisticsController/exportOrderVariousShopItems");
        excludeSignApis.add("/order-client/cms/orderCommissionStatisticsController/exportShopCommission");
        excludeSignApis.add("/order-client/cms/orderCommissionStatisticsController/exportCategoryMoney");
        excludeSignApis.add("/shopping-client/api/shopContractSettleIn/settleContractDownload");


        //物流
        excludeSignApis.add("/logistics-client/api/logisticsOrder/batchExportOrderList");
        excludeSignApis.add("/logistics-client/api/logisticsOrder/batchAdminExportOrderList");

        //订单
        excludeSignApis.add("/order-client/cms/orderInfo/batchExportOrderList");
        excludeSignApis.add("/order-client/api/orderInfo/exportOrderList");
        excludeSignApis.add("/order-client/api/orderInfo/batchExportOrderList");
        //商品
        excludeSignApis.add("/commodity-client/cms/commodityInfo/batchExportAdminGoodsList");
        excludeSignApis.add("/commodity-client/api/commodityInfo/batchExportGoodsList");

        excludeSignApis.add("/pay-client/api/payUser/add");//开户
        // 属性导入
        excludeSignApis.add("/commodity-client/cms/commodityCategory/importAttributes");
        // 类目导入
        excludeSignApis.add("/commodity-client/cms/categoryMaintainCms/importCategoryAttributes");
        // 类目错误数据导出
        excludeSignApis.add("/commodity-client/cms/categoryMaintainCms/exportImportErrorDate");
        // 合同文档上传
        excludeSignApis.add("/shopping-client/api/shopQiyuesuoInfo/addContractDocument");
        // 全部类目属性导出
        excludeSignApis.add("/commodity-client/cms/commodityCategory/exportAllCategoryList");
        // 处理商品图片，后续删除
        excludeSignApis.add("/commodity-client/api/commodityInfo/updateLogImg");
        // 首页咨询
        excludeSignApis.add("/shopping-client/api/epgConsultingServiceApi/queryPageList");
        excludeSignApis.add("/shopping-client/api/epgConsultingServiceApi/getById");


        excludeSignApis.add("/shopping-client/api/server/get");
        excludeSignApis.add("/commodity-client/api/server/get");
        excludeSignApis.add("/file-client/api/server/get");
        excludeSignApis.add("/order-client/api/server/get");
        excludeSignApis.add("/pay-client/api/server/get");
        excludeSignApis.add("/search-client/api/server/get");
        excludeSignApis.add("/sms-client/api/server/get");
        excludeSignApis.add("/sys-client/api/server/get");
        excludeSignApis.add("/user-client/api/server/get");


        excludeSignApis.add("/shopping-client/api/shopOnlineApi/getShopImState");
        // 记录商品提交数据
        excludeSignApis.add("/commodity-client/api/commodityCommitMsgApi/insert");
        excludeSignApis.add("/search-client/api/goodsSearch/addMappingAndAddDate");

        excludeApis.add("/pay-client/cms/payFundSync/saveSync");
        excludeSignApis.add("/pay-client/cms/payFundSync/saveSync");
    }

    private static ExcludeApisConstant instance = new ExcludeApisConstant();

    public static ExcludeApisConstant getInstance(){
        return instance;
    }

    private List<String> excludeApis = new ArrayList<>();

    private List<String> excludeSignApis = new ArrayList<>();

    public List<String> getExcludeApisList(){
        return excludeApis;
    }


    public boolean isExist(String key){
        boolean result = false;
        for(String s : excludeApis){
            if(key.indexOf(s) >= 0){
                result = true;
                break;
            }
        }
        return result;
    }

    public boolean isSignExist(String key){
        boolean result = false;
        for(String s : excludeSignApis){
            if(key.indexOf(s) >= 0){
                result = true;
                break;
            }
        }
        return result;
    }


    public static void main(String[] args) {
        String s1 = "abcd";
        System.out.println("ab".indexOf(s1));
    }

}
